package com.wwdx.wechat.config.open;

import com.wwdx.wechat.config.BaseWxOpenConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 开放平台配置信息
 * @author liguoliang
 * @date 2018-09-17 18:46:15
 */
@Configuration
public class WxOpenConfig extends BaseWxOpenConfig{

    /**
     * 设置微信三方平台的appid
     */
    @Value("#{constantProperties['componentAppId']}")
    private String componentAppId;

    /**
     * 设置微信三方平台的app secret
     */
    @Value("#{constantProperties['componentSecret']}")
    private String componentSecret;

    /**
     * 设置微信三方平台的token
     */
    @Value("#{constantProperties['componentToken']}")
    private String componentToken;

    /**
     * 设置微信三方平台的EncodingAESKey
     */
    @Value("#{constantProperties['componentAesKey']}")
    private String componentAesKey;

    @Override
    public String getComponentAppId() {
        return componentAppId;
    }

    @Override
    public String getComponentSecret() {
        return componentSecret;
    }

    @Override
    public String getComponentToken() {
        return componentToken;
    }

    @Override
    public String getComponentAesKey() {
        return componentAesKey;
    }
}